package com.entity.user;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("permissions")
public class Permission {

    @ApiModelProperty(value = "权限ID，主键，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "权限名称，唯一，必填（如 PERMISSION_EDIT_USER）")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "权限描述，可选")
    @TableField("description")
    private String description;
}